package com.exce;

/**
 * @Author WaveHi
 * @Date 1/8/2021 上午 10:43
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description
 */
public class VarLocDemo1 {

    String name;//名称
    int age;//年龄

    /**
     * 打印类的成员变量
     */
    public void test1() {
        System.out.println(name);
        System.out.println(age);
    }

    public static void main(String[] args) {

        int i1 = 12;

        {

            int i2 = 20;
            System.out.println(i1);
            System.out.println(i2);

        }

    }



}
